package com.example.service.impl;

import com.example.entity.UserMessage;
import com.example.exception.LibraryManagerException;
import com.example.mapper.UserMessageMapper;
import com.example.service.UserMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 紫煦桉
 */
@Service
public class UserMessageServiceImpl extends AbstractSuperServiceImpl<UserMessage> implements UserMessageService {
    private UserMessageMapper userMessageMapper;
    @Autowired
    public void setUserMessageMapper(UserMessageMapper userMessageMapper) {
        this.userMessageMapper = userMessageMapper;
    }
    @Override
    public UserMessage login(UserMessage userMessage) throws LibraryManagerException {
        return userMessageMapper.login(userMessage);
    }
}
